﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Data.SqlClient;
using System.Data;
using YemekteyizLib.Bs;
using YemekteyizLib;

public partial class restoranlar : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {
        string ilceID = Request.QueryString["ilceID"];

        if (ilceID != null)
        {
            Ilce ilcem = new Ilce();
            ilcem.ID = Convert.ToInt32(ilceID);

            DataList1.DataSource = RestoranProvider.GetByIlce(ilcem);
            DataList1.DataBind();
        }
        else
        {
            Response.Redirect("main.aspx");
        }
    }
}
